package com.teamall.web.sjtj.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class CodeVisitedTownRankArg {
    private String pk_name = "vid";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<CodeVisitedTownRankCriteria> oredCriteria;

    public CodeVisitedTownRankArg() {
        oredCriteria = new ArrayList<CodeVisitedTownRankCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<CodeVisitedTownRankCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(CodeVisitedTownRankCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public CodeVisitedTownRankCriteria or() {
    	CodeVisitedTownRankCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public CodeVisitedTownRankCriteria createCriteria() {
    	CodeVisitedTownRankCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected CodeVisitedTownRankCriteria createCriteriaInternal() {
    	CodeVisitedTownRankCriteria criteria = new CodeVisitedTownRankCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<CodeVisitedTownRankCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<CodeVisitedTownRankCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<CodeVisitedTownRankCriterion> getAllCriteria() {
            return criteria;
        }

        public List<CodeVisitedTownRankCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new CodeVisitedTownRankCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new CodeVisitedTownRankCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new CodeVisitedTownRankCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new CodeVisitedTownRankCriterion(condition, value1, value2));
        }

        public CodeVisitedTownRankCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (CodeVisitedTownRankCriteria) this;
        }
        public CodeVisitedTownRankCriteria andVidIsNull() {
            addCriterion("vid is null");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVidIsNotNull() {
            addCriterion("vid is not null");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVidEqualTo(String value) {
            addCriterion("vid =", value, "vid");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVidNotEqualTo(String value) {
            addCriterion("vid <>", value, "vid");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVidGreaterThan(String value) {
            addCriterion("vid >", value, "vid");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVidGreaterThanOrEqualTo(String value) {
            addCriterion("vid >=", value, "vid");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVidLessThan(String value) {
            addCriterion("vid <", value, "vid");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVidLessThanOrEqualTo(String value) {
            addCriterion("vid <=", value, "vid");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVidLike(String value) {
            addCriterion("vid like ", value, "vid", 1);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVidNotLike(String value) {
            addCriterion("vid  not like ", value, "vid", 1);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVidLeftLike(String value) {
            addCriterion("vid like ", value, "vid", 0);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVidNotLeftLike(String value) {
            addCriterion("vid  not like ", value, "vid", 0);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVidRightLike(String value) {
            addCriterion("vid like ", value, "vid", 2);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVidNotRightLike(String value) {
            addCriterion("vid  not like ", value, "vid", 2);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVidIn(List<String> values) {
            addCriterion("vid  in ", values, "vid");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVidNotIn(List<String> values) {
            addCriterion("vid not in ", values, "vid");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVidBetween(String value1, String value2) {
            addCriterion("vid between ", value1, value2, "vid");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVidNotBetween(String value1, String value2) {
            addCriterion("vid not between ", value1, value2, "vid");
            return (CodeVisitedTownRankCriteria) this;
        }
        public CodeVisitedTownRankCriteria andVisitedCountSumIsNull() {
            addCriterion("visited_count_sum is null");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVisitedCountSumIsNotNull() {
            addCriterion("visited_count_sum is not null");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVisitedCountSumEqualTo(BigDecimal value) {
            addCriterion("visited_count_sum =", value, "visited_count_sum");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVisitedCountSumNotEqualTo(BigDecimal value) {
            addCriterion("visited_count_sum <>", value, "visited_count_sum");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVisitedCountSumGreaterThan(BigDecimal value) {
            addCriterion("visited_count_sum >", value, "visited_count_sum");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVisitedCountSumGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("visited_count_sum >=", value, "visited_count_sum");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVisitedCountSumLessThan(BigDecimal value) {
            addCriterion("visited_count_sum <", value, "visited_count_sum");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVisitedCountSumLessThanOrEqualTo(BigDecimal value) {
            addCriterion("visited_count_sum <=", value, "visited_count_sum");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVisitedCountSumLike(BigDecimal value) {
            addCriterion("visited_count_sum like ", value, "visited_count_sum", 1);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVisitedCountSumNotLike(BigDecimal value) {
            addCriterion("visited_count_sum  not like ", value, "visited_count_sum", 1);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVisitedCountSumLeftLike(BigDecimal value) {
            addCriterion("visited_count_sum like ", value, "visited_count_sum", 0);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVisitedCountSumNotLeftLike(BigDecimal value) {
            addCriterion("visited_count_sum  not like ", value, "visited_count_sum", 0);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVisitedCountSumRightLike(BigDecimal value) {
            addCriterion("visited_count_sum like ", value, "visited_count_sum", 2);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVisitedCountSumNotRightLike(BigDecimal value) {
            addCriterion("visited_count_sum  not like ", value, "visited_count_sum", 2);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVisitedCountSumIn(List<BigDecimal> values) {
            addCriterion("visited_count_sum  in ", values, "visited_count_sum");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVisitedCountSumNotIn(List<BigDecimal> values) {
            addCriterion("visited_count_sum not in ", values, "visited_count_sum");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVisitedCountSumBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("visited_count_sum between ", value1, value2, "visited_count_sum");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVisitedCountSumNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("visited_count_sum not between ", value1, value2, "visited_count_sum");
            return (CodeVisitedTownRankCriteria) this;
        }
        public CodeVisitedTownRankCriteria andTownIdIsNull() {
            addCriterion("TOWN_ID is null");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownIdIsNotNull() {
            addCriterion("TOWN_ID is not null");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownIdEqualTo(Integer value) {
            addCriterion("TOWN_ID =", value, "TOWN_ID");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownIdNotEqualTo(Integer value) {
            addCriterion("TOWN_ID <>", value, "TOWN_ID");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownIdGreaterThan(Integer value) {
            addCriterion("TOWN_ID >", value, "TOWN_ID");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("TOWN_ID >=", value, "TOWN_ID");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownIdLessThan(Integer value) {
            addCriterion("TOWN_ID <", value, "TOWN_ID");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownIdLessThanOrEqualTo(Integer value) {
            addCriterion("TOWN_ID <=", value, "TOWN_ID");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownIdLike(Integer value) {
            addCriterion("TOWN_ID like ", value, "TOWN_ID", 1);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownIdNotLike(Integer value) {
            addCriterion("TOWN_ID  not like ", value, "TOWN_ID", 1);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownIdLeftLike(Integer value) {
            addCriterion("TOWN_ID like ", value, "TOWN_ID", 0);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownIdNotLeftLike(Integer value) {
            addCriterion("TOWN_ID  not like ", value, "TOWN_ID", 0);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownIdRightLike(Integer value) {
            addCriterion("TOWN_ID like ", value, "TOWN_ID", 2);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownIdNotRightLike(Integer value) {
            addCriterion("TOWN_ID  not like ", value, "TOWN_ID", 2);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownIdIn(List<Integer> values) {
            addCriterion("TOWN_ID  in ", values, "TOWN_ID");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownIdNotIn(List<Integer> values) {
            addCriterion("TOWN_ID not in ", values, "TOWN_ID");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownIdBetween(Integer value1, Integer value2) {
            addCriterion("TOWN_ID between ", value1, value2, "TOWN_ID");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownIdNotBetween(Integer value1, Integer value2) {
            addCriterion("TOWN_ID not between ", value1, value2, "TOWN_ID");
            return (CodeVisitedTownRankCriteria) this;
        }
        public CodeVisitedTownRankCriteria andTownNameIsNull() {
            addCriterion("TOWN_NAME is null");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownNameIsNotNull() {
            addCriterion("TOWN_NAME is not null");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownNameEqualTo(String value) {
            addCriterion("TOWN_NAME =", value, "TOWN_NAME");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownNameNotEqualTo(String value) {
            addCriterion("TOWN_NAME <>", value, "TOWN_NAME");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownNameGreaterThan(String value) {
            addCriterion("TOWN_NAME >", value, "TOWN_NAME");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownNameGreaterThanOrEqualTo(String value) {
            addCriterion("TOWN_NAME >=", value, "TOWN_NAME");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownNameLessThan(String value) {
            addCriterion("TOWN_NAME <", value, "TOWN_NAME");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownNameLessThanOrEqualTo(String value) {
            addCriterion("TOWN_NAME <=", value, "TOWN_NAME");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownNameLike(String value) {
            addCriterion("TOWN_NAME like ", value, "TOWN_NAME", 1);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownNameNotLike(String value) {
            addCriterion("TOWN_NAME  not like ", value, "TOWN_NAME", 1);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownNameLeftLike(String value) {
            addCriterion("TOWN_NAME like ", value, "TOWN_NAME", 0);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownNameNotLeftLike(String value) {
            addCriterion("TOWN_NAME  not like ", value, "TOWN_NAME", 0);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownNameRightLike(String value) {
            addCriterion("TOWN_NAME like ", value, "TOWN_NAME", 2);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownNameNotRightLike(String value) {
            addCriterion("TOWN_NAME  not like ", value, "TOWN_NAME", 2);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownNameIn(List<String> values) {
            addCriterion("TOWN_NAME  in ", values, "TOWN_NAME");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownNameNotIn(List<String> values) {
            addCriterion("TOWN_NAME not in ", values, "TOWN_NAME");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownNameBetween(String value1, String value2) {
            addCriterion("TOWN_NAME between ", value1, value2, "TOWN_NAME");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andTownNameNotBetween(String value1, String value2) {
            addCriterion("TOWN_NAME not between ", value1, value2, "TOWN_NAME");
            return (CodeVisitedTownRankCriteria) this;
        }
        public CodeVisitedTownRankCriteria andVtimeIsNull() {
            addCriterion("vtime is null");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVtimeIsNotNull() {
            addCriterion("vtime is not null");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVtimeEqualTo(String value) {
            addCriterion("vtime =", value, "vtime");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVtimeNotEqualTo(String value) {
            addCriterion("vtime <>", value, "vtime");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVtimeGreaterThan(String value) {
            addCriterion("vtime >", value, "vtime");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVtimeGreaterThanOrEqualTo(String value) {
            addCriterion("vtime >=", value, "vtime");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVtimeLessThan(String value) {
            addCriterion("vtime <", value, "vtime");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVtimeLessThanOrEqualTo(String value) {
            addCriterion("vtime <=", value, "vtime");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVtimeLike(String value) {
            addCriterion("vtime like ", value, "vtime", 1);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVtimeNotLike(String value) {
            addCriterion("vtime  not like ", value, "vtime", 1);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVtimeLeftLike(String value) {
            addCriterion("vtime like ", value, "vtime", 0);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVtimeNotLeftLike(String value) {
            addCriterion("vtime  not like ", value, "vtime", 0);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVtimeRightLike(String value) {
            addCriterion("vtime like ", value, "vtime", 2);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVtimeNotRightLike(String value) {
            addCriterion("vtime  not like ", value, "vtime", 2);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVtimeIn(List<String> values) {
            addCriterion("vtime  in ", values, "vtime");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVtimeNotIn(List<String> values) {
            addCriterion("vtime not in ", values, "vtime");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVtimeBetween(String value1, String value2) {
            addCriterion("vtime between ", value1, value2, "vtime");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVtimeNotBetween(String value1, String value2) {
            addCriterion("vtime not between ", value1, value2, "vtime");
            return (CodeVisitedTownRankCriteria) this;
        }
        public CodeVisitedTownRankCriteria andVmonthIsNull() {
            addCriterion("vmonth is null");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVmonthIsNotNull() {
            addCriterion("vmonth is not null");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVmonthEqualTo(String value) {
            addCriterion("vmonth =", value, "vmonth");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVmonthNotEqualTo(String value) {
            addCriterion("vmonth <>", value, "vmonth");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVmonthGreaterThan(String value) {
            addCriterion("vmonth >", value, "vmonth");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVmonthGreaterThanOrEqualTo(String value) {
            addCriterion("vmonth >=", value, "vmonth");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVmonthLessThan(String value) {
            addCriterion("vmonth <", value, "vmonth");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVmonthLessThanOrEqualTo(String value) {
            addCriterion("vmonth <=", value, "vmonth");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVmonthLike(String value) {
            addCriterion("vmonth like ", value, "vmonth", 1);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVmonthNotLike(String value) {
            addCriterion("vmonth  not like ", value, "vmonth", 1);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVmonthLeftLike(String value) {
            addCriterion("vmonth like ", value, "vmonth", 0);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVmonthNotLeftLike(String value) {
            addCriterion("vmonth  not like ", value, "vmonth", 0);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVmonthRightLike(String value) {
            addCriterion("vmonth like ", value, "vmonth", 2);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVmonthNotRightLike(String value) {
            addCriterion("vmonth  not like ", value, "vmonth", 2);
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVmonthIn(List<String> values) {
            addCriterion("vmonth  in ", values, "vmonth");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVmonthNotIn(List<String> values) {
            addCriterion("vmonth not in ", values, "vmonth");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVmonthBetween(String value1, String value2) {
            addCriterion("vmonth between ", value1, value2, "vmonth");
            return (CodeVisitedTownRankCriteria) this;
        }

        public CodeVisitedTownRankCriteria andVmonthNotBetween(String value1, String value2) {
            addCriterion("vmonth not between ", value1, value2, "vmonth");
            return (CodeVisitedTownRankCriteria) this;
        }

    }

    public static class CodeVisitedTownRankCriteria extends GeneratedCriteria {

        protected CodeVisitedTownRankCriteria() {
            super();
        }
    }

    public static class CodeVisitedTownRankCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected CodeVisitedTownRankCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected CodeVisitedTownRankCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected CodeVisitedTownRankCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected CodeVisitedTownRankCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected CodeVisitedTownRankCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected CodeVisitedTownRankCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}